home *** CD-ROM | disk | FTP | other *** search
- Path: ari.ari.net!news-admin
- From: flyboy@ari.net (Nathaniel Meo)
- Newsgroups: comp.lang.c
- Subject: stdio question
- Date: Fri, 19 Apr 1996 07:13:11 GMT
- Organization: ARInternet, Corp.
- Message-ID: <4lc02b$7cm@ari.ari.net>
- NNTP-Posting-Host: flyboy.ari.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- I know this may sound pretty stupid but I'm a beginner at C and I've
- been trying to figure this out. I am trying to make a program which
- reads a binary input from stdin and writes binary to stdout. Only
- problem is whenever I hit the 1A character (EOF) it tinks it's the end
- of the file and ends the loop. Is there any way that I can avoid this
- and still have a check for a real end of file when reading a binary
- file from stdin? Thanks.
-
-